<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>通过超链接来实现</h1>
<h2>
    <a href="/user?username=admin&password=123456">请求</a>
</h2>
<hr>


<!--enctype="application/x-www-form-urlencoded" 默认可以不写-->
<form action="/user" method="post">
    <p>
        <label for="username">用户账号:</label>
        <input type="text" id="username" name="username" value="">
    </p>
    <p>
        <label for="password">用户密码:</label>
        <input type="password" id="password" name="password">
    </p>
    <p>
        <input type="submit" value="提交">
    </p>
</form>
</body>
</html>